<?php


abstract class BasePhpBbUser extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $user_id;


	
	protected $user_type;


	
	protected $group_id;


	
	protected $user_permissions;


	
	protected $user_perm_from;


	
	protected $user_ip;


	
	protected $user_regdate;


	
	protected $username;


	
	protected $username_clean;


	
	protected $user_password;


	
	protected $user_passchg;


	
	protected $user_pass_convert;


	
	protected $user_email;


	
	protected $user_email_hash;


	
	protected $user_birthday;


	
	protected $user_lastvisit;


	
	protected $user_lastmark;


	
	protected $user_lastpost_time;


	
	protected $user_lastpage;


	
	protected $user_last_confirm_key;


	
	protected $user_last_search;


	
	protected $user_warnings;


	
	protected $user_last_warning;


	
	protected $user_login_attempts;


	
	protected $user_inactive_reason;


	
	protected $user_inactive_time;


	
	protected $user_posts;


	
	protected $user_lang;


	
	protected $user_timezone;


	
	protected $user_dst;


	
	protected $user_dateformat;


	
	protected $user_style;


	
	protected $user_rank;


	
	protected $user_colour;


	
	protected $user_new_privmsg;


	
	protected $user_unread_privmsg;


	
	protected $user_last_privmsg;


	
	protected $user_message_rules;


	
	protected $user_full_folder;


	
	protected $user_emailtime;


	
	protected $user_topic_show_days;


	
	protected $user_topic_sortby_type;


	
	protected $user_topic_sortby_dir;


	
	protected $user_post_show_days;


	
	protected $user_post_sortby_type;


	
	protected $user_post_sortby_dir;


	
	protected $user_notify;


	
	protected $user_notify_pm;


	
	protected $user_notify_type;


	
	protected $user_allow_pm;


	
	protected $user_allow_viewonline;


	
	protected $user_allow_viewemail;


	
	protected $user_allow_massemail;


	
	protected $user_options;


	
	protected $user_avatar;


	
	protected $user_avatar_type;


	
	protected $user_avatar_width;


	
	protected $user_avatar_height;


	
	protected $user_sig;


	
	protected $user_sig_bbcode_uid;


	
	protected $user_sig_bbcode_bitfield;


	
	protected $user_from;


	
	protected $user_icq;


	
	protected $user_aim;


	
	protected $user_yim;


	
	protected $user_msnm;


	
	protected $user_jabber;


	
	protected $user_website;


	
	protected $user_occ;


	
	protected $user_interests;


	
	protected $user_actkey;


	
	protected $user_newpasswd;


	
	protected $user_form_salt;


	
	protected $user_new;


	
	protected $user_reminded;


	
	protected $user_reminded_time;


	
	protected $id;

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getUserId()
	{

		return $this->user_id;
	}

	
	public function getUserType()
	{

		return $this->user_type;
	}

	
	public function getGroupId()
	{

		return $this->group_id;
	}

	
	public function getUserPermissions()
	{

		return $this->user_permissions;
	}

	
	public function getUserPermFrom()
	{

		return $this->user_perm_from;
	}

	
	public function getUserIp()
	{

		return $this->user_ip;
	}

	
	public function getUserRegdate()
	{
		if ($this->user_regdate === null || $this->user_regdate === '')
        {
			return null;
		}elseif (!is_int($this->user_regdate))
        {
            $ts = strtotime($this->user_regdate);
			if( $ts === -1 || $ts === false )
            {
                throw new PropelException("Unable to parse value of [user_regdate] as date/time value: " . var_export($this->user_regdate, true));
			}
		} else
        {
			$ts = $this->user_regdate;
		}

		if ($format === null)
        {
			return $ts;
		} elseif (strpos($format, '%') !== false)
        {
			return strftime($format, $ts);
		} else
        {
			return date($format, $ts);
		}

		return $this->user_regdate;
	}

	
	public function getUsername()
	{

		return $this->username;
	}

	
	public function getUsernameClean()
	{

		return $this->username_clean;
	}

	
	public function getUserPassword()
	{

		return $this->user_password;
	}

	
	public function getUserPasschg()
	{

		return $this->user_passchg;
	}

	
	public function getUserPassConvert()
	{

		return $this->user_pass_convert;
	}

	
	public function getUserEmail()
	{

		return $this->user_email;
	}

	
	public function getUserEmailHash()
	{

		return $this->user_email_hash;
	}

	
	public function getUserBirthday()
	{

		return $this->user_birthday;
	}

	
	public function getUserLastvisit()
	{

		return $this->user_lastvisit;
	}

	
	public function getUserLastmark()
	{

		return $this->user_lastmark;
	}

	
	public function getUserLastpostTime()
	{

		return $this->user_lastpost_time;
	}

	
	public function getUserLastpage()
	{

		return $this->user_lastpage;
	}

	
	public function getUserLastConfirmKey()
	{

		return $this->user_last_confirm_key;
	}

	
	public function getUserLastSearch()
	{

		return $this->user_last_search;
	}

	
	public function getUserWarnings()
	{

		return $this->user_warnings;
	}

	
	public function getUserLastWarning()
	{

		return $this->user_last_warning;
	}

	
	public function getUserLoginAttempts()
	{

		return $this->user_login_attempts;
	}

	
	public function getUserInactiveReason()
	{

		return $this->user_inactive_reason;
	}

	
	public function getUserInactiveTime()
	{

		return $this->user_inactive_time;
	}

	
	public function getUserPosts()
	{

		return $this->user_posts;
	}

	
	public function getUserLang()
	{

		return $this->user_lang;
	}

	
	public function getUserTimezone()
	{

		return $this->user_timezone;
	}

	
	public function getUserDst()
	{

		return $this->user_dst;
	}

	
	public function getUserDateformat()
	{

		return $this->user_dateformat;
	}

	
	public function getUserStyle()
	{

		return $this->user_style;
	}

	
	public function getUserRank()
	{

		return $this->user_rank;
	}

	
	public function getUserColour()
	{

		return $this->user_colour;
	}

	
	public function getUserNewPrivmsg()
	{

		return $this->user_new_privmsg;
	}

	
	public function getUserUnreadPrivmsg()
	{

		return $this->user_unread_privmsg;
	}

	
	public function getUserLastPrivmsg()
	{

		return $this->user_last_privmsg;
	}

	
	public function getUserMessageRules()
	{

		return $this->user_message_rules;
	}

	
	public function getUserFullFolder()
	{

		return $this->user_full_folder;
	}

	
	public function getUserEmailtime()
	{

		return $this->user_emailtime;
	}

	
	public function getUserTopicShowDays()
	{

		return $this->user_topic_show_days;
	}

	
	public function getUserTopicSortbyType()
	{

		return $this->user_topic_sortby_type;
	}

	
	public function getUserTopicSortbyDir()
	{

		return $this->user_topic_sortby_dir;
	}

	
	public function getUserPostShowDays()
	{

		return $this->user_post_show_days;
	}

	
	public function getUserPostSortbyType()
	{

		return $this->user_post_sortby_type;
	}

	
	public function getUserPostSortbyDir()
	{

		return $this->user_post_sortby_dir;
	}

	
	public function getUserNotify()
	{

		return $this->user_notify;
	}

	
	public function getUserNotifyPm()
	{

		return $this->user_notify_pm;
	}

	
	public function getUserNotifyType()
	{

		return $this->user_notify_type;
	}

	
	public function getUserAllowPm()
	{

		return $this->user_allow_pm;
	}

	
	public function getUserAllowViewonline()
	{

		return $this->user_allow_viewonline;
	}

	
	public function getUserAllowViewemail()
	{

		return $this->user_allow_viewemail;
	}

	
	public function getUserAllowMassemail()
	{

		return $this->user_allow_massemail;
	}

	
	public function getUserOptions()
	{

		return $this->user_options;
	}

	
	public function getUserAvatar()
	{

		return $this->user_avatar;
	}

	
	public function getUserAvatarType()
	{

		return $this->user_avatar_type;
	}

	
	public function getUserAvatarWidth()
	{

		return $this->user_avatar_width;
	}

	
	public function getUserAvatarHeight()
	{

		return $this->user_avatar_height;
	}

	
	public function getUserSig()
	{

		return $this->user_sig;
	}

	
	public function getUserSigBbcodeUid()
	{

		return $this->user_sig_bbcode_uid;
	}

	
	public function getUserSigBbcodeBitfield()
	{

		return $this->user_sig_bbcode_bitfield;
	}

	
	public function getUserFrom()
	{

		return $this->user_from;
	}

	
	public function getUserIcq()
	{

		return $this->user_icq;
	}

	
	public function getUserAim()
	{

		return $this->user_aim;
	}

	
	public function getUserYim()
	{

		return $this->user_yim;
	}

	
	public function getUserMsnm()
	{

		return $this->user_msnm;
	}

	
	public function getUserJabber()
	{

		return $this->user_jabber;
	}

	
	public function getUserWebsite()
	{

		return $this->user_website;
	}

	
	public function getUserOcc()
	{

		return $this->user_occ;
	}

	
	public function getUserInterests()
	{

		return $this->user_interests;
	}

	
	public function getUserActkey()
	{

		return $this->user_actkey;
	}

	
	public function getUserNewpasswd()
	{

		return $this->user_newpasswd;
	}

	
	public function getUserFormSalt()
	{

		return $this->user_form_salt;
	}

	
	public function getUserNew()
	{

		return $this->user_new;
	}

	
	public function getUserReminded()
	{

		return $this->user_reminded;
	}

	
	public function getUserRemindedTime()
	{

		return $this->user_reminded_time;
	}

	
	public function getId()
	{

		return $this->id;
	}

	
	public function setUserId($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_id !== $v) {
			$this->user_id = $v;
			////$this->modifiedColumns[] = PhpBbUserPeer::USER_ID;
		}

	} 
	
	public function setUserType($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_type !== $v) {
			$this->user_type = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_TYPE;
		}

	} 
	
	public function setGroupId($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->group_id !== $v) {
			$this->group_id = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::GROUP_ID;
		}

	} 
	
	public function setUserPermissions($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_permissions !== $v) {
			$this->user_permissions = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_PERMISSIONS;
		}

	} 
	
	public function setUserPermFrom($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_perm_from !== $v) {
			$this->user_perm_from = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_PERM_FROM;
		}

	} 
	
	public function setUserIp($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_ip !== $v) {
			$this->user_ip = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_IP;
		}

	} 
	
	public function setUserRegdate($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_regdate !== $v) {
			$this->user_regdate = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_REGDATE;
		}

	} 
	
	public function setUsername($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->username !== $v) {
			$this->username = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USERNAME;
		}

	} 
	
	public function setUsernameClean($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->username_clean !== $v) {
			$this->username_clean = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USERNAME_CLEAN;
		}

	} 
	
	public function setUserPassword($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_password !== $v) {
			$this->user_password = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_PASSWORD;
		}

	} 
	
	public function setUserPasschg($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_passchg !== $v) {
			$this->user_passchg = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_PASSCHG;
		}

	} 
	
	public function setUserPassConvert($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_pass_convert !== $v) {
			$this->user_pass_convert = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_PASS_CONVERT;
		}

	} 
	
	public function setUserEmail($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_email !== $v) {
			$this->user_email = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_EMAIL;
		}

	} 
	
	public function setUserEmailHash($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_email_hash !== $v) {
			$this->user_email_hash = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_EMAIL_HASH;
		}

	} 
	
	public function setUserBirthday($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_birthday !== $v) {
			$this->user_birthday = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_BIRTHDAY;
		}

	} 
	
	public function setUserLastvisit($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_lastvisit !== $v) {
			$this->user_lastvisit = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LASTVISIT;
		}

	} 
	
	public function setUserLastmark($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_lastmark !== $v) {
			$this->user_lastmark = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LASTMARK;
		}

	} 
	
	public function setUserLastpostTime($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_lastpost_time !== $v) {
			$this->user_lastpost_time = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LASTPOST_TIME;
		}

	} 
	
	public function setUserLastpage($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_lastpage !== $v) {
			$this->user_lastpage = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LASTPAGE;
		}

	} 
	
	public function setUserLastConfirmKey($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_last_confirm_key !== $v) {
			$this->user_last_confirm_key = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LAST_CONFIRM_KEY;
		}

	} 
	
	public function setUserLastSearch($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_last_search !== $v) {
			$this->user_last_search = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LAST_SEARCH;
		}

	} 
	
	public function setUserWarnings($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_warnings !== $v) {
			$this->user_warnings = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_WARNINGS;
		}

	} 
	
	public function setUserLastWarning($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_last_warning !== $v) {
			$this->user_last_warning = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LAST_WARNING;
		}

	} 
	
	public function setUserLoginAttempts($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_login_attempts !== $v) {
			$this->user_login_attempts = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LOGIN_ATTEMPTS;
		}

	} 
	
	public function setUserInactiveReason($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_inactive_reason !== $v) {
			$this->user_inactive_reason = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_INACTIVE_REASON;
		}

	} 
	
	public function setUserInactiveTime($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_inactive_time !== $v) {
			$this->user_inactive_time = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_INACTIVE_TIME;
		}

	} 
	
	public function setUserPosts($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_posts !== $v) {
			$this->user_posts = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_POSTS;
		}

	} 
	
	public function setUserLang($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_lang !== $v) {
			$this->user_lang = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LANG;
		}

	} 
	
	public function setUserTimezone($v)
	{

		if ($this->user_timezone !== $v) {
			$this->user_timezone = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_TIMEZONE;
		}

	} 
	
	public function setUserDst($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_dst !== $v) {
			$this->user_dst = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_DST;
		}

	} 
	
	public function setUserDateformat($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_dateformat !== $v) {
			$this->user_dateformat = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_DATEFORMAT;
		}

	} 
	
	public function setUserStyle($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_style !== $v) {
			$this->user_style = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_STYLE;
		}

	} 
	
	public function setUserRank($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_rank !== $v) {
			$this->user_rank = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_RANK;
		}

	} 
	
	public function setUserColour($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_colour !== $v) {
			$this->user_colour = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_COLOUR;
		}

	} 
	
	public function setUserNewPrivmsg($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_new_privmsg !== $v) {
			$this->user_new_privmsg = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NEW_PRIVMSG;
		}

	} 
	
	public function setUserUnreadPrivmsg($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_unread_privmsg !== $v) {
			$this->user_unread_privmsg = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_UNREAD_PRIVMSG;
		}

	} 
	
	public function setUserLastPrivmsg($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_last_privmsg !== $v) {
			$this->user_last_privmsg = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_LAST_PRIVMSG;
		}

	} 
	
	public function setUserMessageRules($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_message_rules !== $v) {
			$this->user_message_rules = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_MESSAGE_RULES;
		}

	} 
	
	public function setUserFullFolder($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_full_folder !== $v) {
			$this->user_full_folder = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_FULL_FOLDER;
		}

	} 
	
	public function setUserEmailtime($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_emailtime !== $v) {
			$this->user_emailtime = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_EMAILTIME;
		}

	} 
	
	public function setUserTopicShowDays($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_topic_show_days !== $v) {
			$this->user_topic_show_days = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_TOPIC_SHOW_DAYS;
		}

	} 
	
	public function setUserTopicSortbyType($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_topic_sortby_type !== $v) {
			$this->user_topic_sortby_type = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_TOPIC_SORTBY_TYPE;
		}

	} 
	
	public function setUserTopicSortbyDir($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_topic_sortby_dir !== $v) {
			$this->user_topic_sortby_dir = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_TOPIC_SORTBY_DIR;
		}

	} 
	
	public function setUserPostShowDays($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_post_show_days !== $v) {
			$this->user_post_show_days = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_POST_SHOW_DAYS;
		}

	} 
	
	public function setUserPostSortbyType($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_post_sortby_type !== $v) {
			$this->user_post_sortby_type = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_POST_SORTBY_TYPE;
		}

	} 
	
	public function setUserPostSortbyDir($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_post_sortby_dir !== $v) {
			$this->user_post_sortby_dir = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_POST_SORTBY_DIR;
		}

	} 
	
	public function setUserNotify($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_notify !== $v) {
			$this->user_notify = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NOTIFY;
		}

	} 
	
	public function setUserNotifyPm($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_notify_pm !== $v) {
			$this->user_notify_pm = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NOTIFY_PM;
		}

	} 
	
	public function setUserNotifyType($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_notify_type !== $v) {
			$this->user_notify_type = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NOTIFY_TYPE;
		}

	} 
	
	public function setUserAllowPm($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_allow_pm !== $v) {
			$this->user_allow_pm = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ALLOW_PM;
		}

	} 
	
	public function setUserAllowViewonline($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_allow_viewonline !== $v) {
			$this->user_allow_viewonline = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ALLOW_VIEWONLINE;
		}

	} 
	
	public function setUserAllowViewemail($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_allow_viewemail !== $v) {
			$this->user_allow_viewemail = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ALLOW_VIEWEMAIL;
		}

	} 
	
	public function setUserAllowMassemail($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_allow_massemail !== $v) {
			$this->user_allow_massemail = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ALLOW_MASSEMAIL;
		}

	} 
	
	public function setUserOptions($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_options !== $v) {
			$this->user_options = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_OPTIONS;
		}

	} 
	
	public function setUserAvatar($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_avatar !== $v) {
			$this->user_avatar = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_AVATAR;
		}

	} 
	
	public function setUserAvatarType($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_avatar_type !== $v) {
			$this->user_avatar_type = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_AVATAR_TYPE;
		}

	} 
	
	public function setUserAvatarWidth($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_avatar_width !== $v) {
			$this->user_avatar_width = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_AVATAR_WIDTH;
		}

	} 
	
	public function setUserAvatarHeight($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_avatar_height !== $v) {
			$this->user_avatar_height = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_AVATAR_HEIGHT;
		}

	} 
	
	public function setUserSig($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_sig !== $v) {
			$this->user_sig = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_SIG;
		}

	} 
	
	public function setUserSigBbcodeUid($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_sig_bbcode_uid !== $v) {
			$this->user_sig_bbcode_uid = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_SIG_BBCODE_UID;
		}

	} 
	
	public function setUserSigBbcodeBitfield($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_sig_bbcode_bitfield !== $v) {
			$this->user_sig_bbcode_bitfield = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_SIG_BBCODE_BITFIELD;
		}

	} 
	
	public function setUserFrom($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_from !== $v) {
			$this->user_from = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_FROM;
		}

	} 
	
	public function setUserIcq($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_icq !== $v) {
			$this->user_icq = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ICQ;
		}

	} 
	
	public function setUserAim($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_aim !== $v) {
			$this->user_aim = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_AIM;
		}

	} 
	
	public function setUserYim($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_yim !== $v) {
			$this->user_yim = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_YIM;
		}

	} 
	
	public function setUserMsnm($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_msnm !== $v) {
			$this->user_msnm = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_MSNM;
		}

	} 
	
	public function setUserJabber($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_jabber !== $v) {
			$this->user_jabber = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_JABBER;
		}

	} 
	
	public function setUserWebsite($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_website !== $v) {
			$this->user_website = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_WEBSITE;
		}

	} 
	
	public function setUserOcc($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_occ !== $v) {
			$this->user_occ = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_OCC;
		}

	} 
	
	public function setUserInterests($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_interests !== $v) {
			$this->user_interests = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_INTERESTS;
		}

	} 
	
	public function setUserActkey($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_actkey !== $v) {
			$this->user_actkey = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_ACTKEY;
		}

	} 
	
	public function setUserNewpasswd($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_newpasswd !== $v) {
			$this->user_newpasswd = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NEWPASSWD;
		}

	} 
	
	public function setUserFormSalt($v)
	{

						if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->user_form_salt !== $v) {
			$this->user_form_salt = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_FORM_SALT;
		}

	} 
	
	public function setUserNew($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_new !== $v) {
			$this->user_new = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_NEW;
		}

	} 
	
	public function setUserReminded($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_reminded !== $v) {
			$this->user_reminded = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_REMINDED;
		}

	} 
	
	public function setUserRemindedTime($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->user_reminded_time !== $v) {
			$this->user_reminded_time = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::USER_REMINDED_TIME;
		}

	} 
	
	public function setId($v)
	{

						if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			//$this->modifiedColumns[] = PhpBbUserPeer::ID;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->user_id = $rs->getInt($startcol + 0);

			$this->user_type = $rs->getInt($startcol + 1);

			$this->group_id = $rs->getInt($startcol + 2);

			$this->user_permissions = $rs->getString($startcol + 3);

			$this->user_perm_from = $rs->getInt($startcol + 4);

			$this->user_ip = $rs->getString($startcol + 5);

			$this->user_regdate = $rs->getInt($startcol + 6);

			$this->username = $rs->getString($startcol + 7);

			$this->username_clean = $rs->getString($startcol + 8);

			$this->user_password = $rs->getString($startcol + 9);

			$this->user_passchg = $rs->getInt($startcol + 10);

			$this->user_pass_convert = $rs->getInt($startcol + 11);

			$this->user_email = $rs->getString($startcol + 12);

			$this->user_email_hash = $rs->getString($startcol + 13);

			$this->user_birthday = $rs->getString($startcol + 14);

			$this->user_lastvisit = $rs->getInt($startcol + 15);

			$this->user_lastmark = $rs->getInt($startcol + 16);

			$this->user_lastpost_time = $rs->getInt($startcol + 17);

			$this->user_lastpage = $rs->getString($startcol + 18);

			$this->user_last_confirm_key = $rs->getString($startcol + 19);

			$this->user_last_search = $rs->getInt($startcol + 20);

			$this->user_warnings = $rs->getInt($startcol + 21);

			$this->user_last_warning = $rs->getInt($startcol + 22);

			$this->user_login_attempts = $rs->getInt($startcol + 23);

			$this->user_inactive_reason = $rs->getInt($startcol + 24);

			$this->user_inactive_time = $rs->getInt($startcol + 25);

			$this->user_posts = $rs->getInt($startcol + 26);

			$this->user_lang = $rs->getString($startcol + 27);

			$this->user_timezone = $rs->getFloat($startcol + 28);

			$this->user_dst = $rs->getInt($startcol + 29);

			$this->user_dateformat = $rs->getString($startcol + 30);

			$this->user_style = $rs->getInt($startcol + 31);

			$this->user_rank = $rs->getInt($startcol + 32);

			$this->user_colour = $rs->getString($startcol + 33);

			$this->user_new_privmsg = $rs->getInt($startcol + 34);

			$this->user_unread_privmsg = $rs->getInt($startcol + 35);

			$this->user_last_privmsg = $rs->getInt($startcol + 36);

			$this->user_message_rules = $rs->getInt($startcol + 37);

			$this->user_full_folder = $rs->getInt($startcol + 38);

			$this->user_emailtime = $rs->getInt($startcol + 39);

			$this->user_topic_show_days = $rs->getInt($startcol + 40);

			$this->user_topic_sortby_type = $rs->getString($startcol + 41);

			$this->user_topic_sortby_dir = $rs->getString($startcol + 42);

			$this->user_post_show_days = $rs->getInt($startcol + 43);

			$this->user_post_sortby_type = $rs->getString($startcol + 44);

			$this->user_post_sortby_dir = $rs->getString($startcol + 45);

			$this->user_notify = $rs->getInt($startcol + 46);

			$this->user_notify_pm = $rs->getInt($startcol + 47);

			$this->user_notify_type = $rs->getInt($startcol + 48);

			$this->user_allow_pm = $rs->getInt($startcol + 49);

			$this->user_allow_viewonline = $rs->getInt($startcol + 50);

			$this->user_allow_viewemail = $rs->getInt($startcol + 51);

			$this->user_allow_massemail = $rs->getInt($startcol + 52);

			$this->user_options = $rs->getInt($startcol + 53);

			$this->user_avatar = $rs->getString($startcol + 54);

			$this->user_avatar_type = $rs->getInt($startcol + 55);

			$this->user_avatar_width = $rs->getInt($startcol + 56);

			$this->user_avatar_height = $rs->getInt($startcol + 57);

			$this->user_sig = $rs->getString($startcol + 58);

			$this->user_sig_bbcode_uid = $rs->getString($startcol + 59);

			$this->user_sig_bbcode_bitfield = $rs->getString($startcol + 60);

			$this->user_from = $rs->getString($startcol + 61);

			$this->user_icq = $rs->getString($startcol + 62);

			$this->user_aim = $rs->getString($startcol + 63);

			$this->user_yim = $rs->getString($startcol + 64);

			$this->user_msnm = $rs->getString($startcol + 65);

			$this->user_jabber = $rs->getString($startcol + 66);

			$this->user_website = $rs->getString($startcol + 67);

			$this->user_occ = $rs->getString($startcol + 68);

			$this->user_interests = $rs->getString($startcol + 69);

			$this->user_actkey = $rs->getString($startcol + 70);

			$this->user_newpasswd = $rs->getString($startcol + 71);

			$this->user_form_salt = $rs->getString($startcol + 72);

			$this->user_new = $rs->getInt($startcol + 73);

			$this->user_reminded = $rs->getInt($startcol + 74);

			$this->user_reminded_time = $rs->getInt($startcol + 75);

			$this->id = $rs->getInt($startcol + 76);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 77; 
		} catch (Exception $e) {
			throw new PropelException("Error populating PhpBbUser object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(PhpBbUserPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			PhpBbUserPeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(PhpBbUserPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = PhpBbUserPeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += PhpBbUserPeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = PhpBbUserPeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = PhpBbUserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getUserId();
				break;
			case 1:
				return $this->getUserType();
				break;
			case 2:
				return $this->getGroupId();
				break;
			case 3:
				return $this->getUserPermissions();
				break;
			case 4:
				return $this->getUserPermFrom();
				break;
			case 5:
				return $this->getUserIp();
				break;
			case 6:
				return $this->getUserRegdate();
				break;
			case 7:
				return $this->getUsername();
				break;
			case 8:
				return $this->getUsernameClean();
				break;
			case 9:
				return $this->getUserPassword();
				break;
			case 10:
				return $this->getUserPasschg();
				break;
			case 11:
				return $this->getUserPassConvert();
				break;
			case 12:
				return $this->getUserEmail();
				break;
			case 13:
				return $this->getUserEmailHash();
				break;
			case 14:
				return $this->getUserBirthday();
				break;
			case 15:
				return $this->getUserLastvisit();
				break;
			case 16:
				return $this->getUserLastmark();
				break;
			case 17:
				return $this->getUserLastpostTime();
				break;
			case 18:
				return $this->getUserLastpage();
				break;
			case 19:
				return $this->getUserLastConfirmKey();
				break;
			case 20:
				return $this->getUserLastSearch();
				break;
			case 21:
				return $this->getUserWarnings();
				break;
			case 22:
				return $this->getUserLastWarning();
				break;
			case 23:
				return $this->getUserLoginAttempts();
				break;
			case 24:
				return $this->getUserInactiveReason();
				break;
			case 25:
				return $this->getUserInactiveTime();
				break;
			case 26:
				return $this->getUserPosts();
				break;
			case 27:
				return $this->getUserLang();
				break;
			case 28:
				return $this->getUserTimezone();
				break;
			case 29:
				return $this->getUserDst();
				break;
			case 30:
				return $this->getUserDateformat();
				break;
			case 31:
				return $this->getUserStyle();
				break;
			case 32:
				return $this->getUserRank();
				break;
			case 33:
				return $this->getUserColour();
				break;
			case 34:
				return $this->getUserNewPrivmsg();
				break;
			case 35:
				return $this->getUserUnreadPrivmsg();
				break;
			case 36:
				return $this->getUserLastPrivmsg();
				break;
			case 37:
				return $this->getUserMessageRules();
				break;
			case 38:
				return $this->getUserFullFolder();
				break;
			case 39:
				return $this->getUserEmailtime();
				break;
			case 40:
				return $this->getUserTopicShowDays();
				break;
			case 41:
				return $this->getUserTopicSortbyType();
				break;
			case 42:
				return $this->getUserTopicSortbyDir();
				break;
			case 43:
				return $this->getUserPostShowDays();
				break;
			case 44:
				return $this->getUserPostSortbyType();
				break;
			case 45:
				return $this->getUserPostSortbyDir();
				break;
			case 46:
				return $this->getUserNotify();
				break;
			case 47:
				return $this->getUserNotifyPm();
				break;
			case 48:
				return $this->getUserNotifyType();
				break;
			case 49:
				return $this->getUserAllowPm();
				break;
			case 50:
				return $this->getUserAllowViewonline();
				break;
			case 51:
				return $this->getUserAllowViewemail();
				break;
			case 52:
				return $this->getUserAllowMassemail();
				break;
			case 53:
				return $this->getUserOptions();
				break;
			case 54:
				return $this->getUserAvatar();
				break;
			case 55:
				return $this->getUserAvatarType();
				break;
			case 56:
				return $this->getUserAvatarWidth();
				break;
			case 57:
				return $this->getUserAvatarHeight();
				break;
			case 58:
				return $this->getUserSig();
				break;
			case 59:
				return $this->getUserSigBbcodeUid();
				break;
			case 60:
				return $this->getUserSigBbcodeBitfield();
				break;
			case 61:
				return $this->getUserFrom();
				break;
			case 62:
				return $this->getUserIcq();
				break;
			case 63:
				return $this->getUserAim();
				break;
			case 64:
				return $this->getUserYim();
				break;
			case 65:
				return $this->getUserMsnm();
				break;
			case 66:
				return $this->getUserJabber();
				break;
			case 67:
				return $this->getUserWebsite();
				break;
			case 68:
				return $this->getUserOcc();
				break;
			case 69:
				return $this->getUserInterests();
				break;
			case 70:
				return $this->getUserActkey();
				break;
			case 71:
				return $this->getUserNewpasswd();
				break;
			case 72:
				return $this->getUserFormSalt();
				break;
			case 73:
				return $this->getUserNew();
				break;
			case 74:
				return $this->getUserReminded();
				break;
			case 75:
				return $this->getUserRemindedTime();
				break;
			case 76:
				return $this->getId();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = PhpBbUserPeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getUserId(),
			$keys[1] => $this->getUserType(),
			$keys[2] => $this->getGroupId(),
			$keys[3] => $this->getUserPermissions(),
			$keys[4] => $this->getUserPermFrom(),
			$keys[5] => $this->getUserIp(),
			$keys[6] => $this->getUserRegdate(),
			$keys[7] => $this->getUsername(),
			$keys[8] => $this->getUsernameClean(),
			$keys[9] => $this->getUserPassword(),
			$keys[10] => $this->getUserPasschg(),
			$keys[11] => $this->getUserPassConvert(),
			$keys[12] => $this->getUserEmail(),
			$keys[13] => $this->getUserEmailHash(),
			$keys[14] => $this->getUserBirthday(),
			$keys[15] => $this->getUserLastvisit(),
			$keys[16] => $this->getUserLastmark(),
			$keys[17] => $this->getUserLastpostTime(),
			$keys[18] => $this->getUserLastpage(),
			$keys[19] => $this->getUserLastConfirmKey(),
			$keys[20] => $this->getUserLastSearch(),
			$keys[21] => $this->getUserWarnings(),
			$keys[22] => $this->getUserLastWarning(),
			$keys[23] => $this->getUserLoginAttempts(),
			$keys[24] => $this->getUserInactiveReason(),
			$keys[25] => $this->getUserInactiveTime(),
			$keys[26] => $this->getUserPosts(),
			$keys[27] => $this->getUserLang(),
			$keys[28] => $this->getUserTimezone(),
			$keys[29] => $this->getUserDst(),
			$keys[30] => $this->getUserDateformat(),
			$keys[31] => $this->getUserStyle(),
			$keys[32] => $this->getUserRank(),
			$keys[33] => $this->getUserColour(),
			$keys[34] => $this->getUserNewPrivmsg(),
			$keys[35] => $this->getUserUnreadPrivmsg(),
			$keys[36] => $this->getUserLastPrivmsg(),
			$keys[37] => $this->getUserMessageRules(),
			$keys[38] => $this->getUserFullFolder(),
			$keys[39] => $this->getUserEmailtime(),
			$keys[40] => $this->getUserTopicShowDays(),
			$keys[41] => $this->getUserTopicSortbyType(),
			$keys[42] => $this->getUserTopicSortbyDir(),
			$keys[43] => $this->getUserPostShowDays(),
			$keys[44] => $this->getUserPostSortbyType(),
			$keys[45] => $this->getUserPostSortbyDir(),
			$keys[46] => $this->getUserNotify(),
			$keys[47] => $this->getUserNotifyPm(),
			$keys[48] => $this->getUserNotifyType(),
			$keys[49] => $this->getUserAllowPm(),
			$keys[50] => $this->getUserAllowViewonline(),
			$keys[51] => $this->getUserAllowViewemail(),
			$keys[52] => $this->getUserAllowMassemail(),
			$keys[53] => $this->getUserOptions(),
			$keys[54] => $this->getUserAvatar(),
			$keys[55] => $this->getUserAvatarType(),
			$keys[56] => $this->getUserAvatarWidth(),
			$keys[57] => $this->getUserAvatarHeight(),
			$keys[58] => $this->getUserSig(),
			$keys[59] => $this->getUserSigBbcodeUid(),
			$keys[60] => $this->getUserSigBbcodeBitfield(),
			$keys[61] => $this->getUserFrom(),
			$keys[62] => $this->getUserIcq(),
			$keys[63] => $this->getUserAim(),
			$keys[64] => $this->getUserYim(),
			$keys[65] => $this->getUserMsnm(),
			$keys[66] => $this->getUserJabber(),
			$keys[67] => $this->getUserWebsite(),
			$keys[68] => $this->getUserOcc(),
			$keys[69] => $this->getUserInterests(),
			$keys[70] => $this->getUserActkey(),
			$keys[71] => $this->getUserNewpasswd(),
			$keys[72] => $this->getUserFormSalt(),
			$keys[73] => $this->getUserNew(),
			$keys[74] => $this->getUserReminded(),
			$keys[75] => $this->getUserRemindedTime(),
			$keys[76] => $this->getId(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = PhpBbUserPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setUserId($value);
				break;
			case 1:
				$this->setUserType($value);
				break;
			case 2:
				$this->setGroupId($value);
				break;
			case 3:
				$this->setUserPermissions($value);
				break;
			case 4:
				$this->setUserPermFrom($value);
				break;
			case 5:
				$this->setUserIp($value);
				break;
			case 6:
				$this->setUserRegdate($value);
				break;
			case 7:
				$this->setUsername($value);
				break;
			case 8:
				$this->setUsernameClean($value);
				break;
			case 9:
				$this->setUserPassword($value);
				break;
			case 10:
				$this->setUserPasschg($value);
				break;
			case 11:
				$this->setUserPassConvert($value);
				break;
			case 12:
				$this->setUserEmail($value);
				break;
			case 13:
				$this->setUserEmailHash($value);
				break;
			case 14:
				$this->setUserBirthday($value);
				break;
			case 15:
				$this->setUserLastvisit($value);
				break;
			case 16:
				$this->setUserLastmark($value);
				break;
			case 17:
				$this->setUserLastpostTime($value);
				break;
			case 18:
				$this->setUserLastpage($value);
				break;
			case 19:
				$this->setUserLastConfirmKey($value);
				break;
			case 20:
				$this->setUserLastSearch($value);
				break;
			case 21:
				$this->setUserWarnings($value);
				break;
			case 22:
				$this->setUserLastWarning($value);
				break;
			case 23:
				$this->setUserLoginAttempts($value);
				break;
			case 24:
				$this->setUserInactiveReason($value);
				break;
			case 25:
				$this->setUserInactiveTime($value);
				break;
			case 26:
				$this->setUserPosts($value);
				break;
			case 27:
				$this->setUserLang($value);
				break;
			case 28:
				$this->setUserTimezone($value);
				break;
			case 29:
				$this->setUserDst($value);
				break;
			case 30:
				$this->setUserDateformat($value);
				break;
			case 31:
				$this->setUserStyle($value);
				break;
			case 32:
				$this->setUserRank($value);
				break;
			case 33:
				$this->setUserColour($value);
				break;
			case 34:
				$this->setUserNewPrivmsg($value);
				break;
			case 35:
				$this->setUserUnreadPrivmsg($value);
				break;
			case 36:
				$this->setUserLastPrivmsg($value);
				break;
			case 37:
				$this->setUserMessageRules($value);
				break;
			case 38:
				$this->setUserFullFolder($value);
				break;
			case 39:
				$this->setUserEmailtime($value);
				break;
			case 40:
				$this->setUserTopicShowDays($value);
				break;
			case 41:
				$this->setUserTopicSortbyType($value);
				break;
			case 42:
				$this->setUserTopicSortbyDir($value);
				break;
			case 43:
				$this->setUserPostShowDays($value);
				break;
			case 44:
				$this->setUserPostSortbyType($value);
				break;
			case 45:
				$this->setUserPostSortbyDir($value);
				break;
			case 46:
				$this->setUserNotify($value);
				break;
			case 47:
				$this->setUserNotifyPm($value);
				break;
			case 48:
				$this->setUserNotifyType($value);
				break;
			case 49:
				$this->setUserAllowPm($value);
				break;
			case 50:
				$this->setUserAllowViewonline($value);
				break;
			case 51:
				$this->setUserAllowViewemail($value);
				break;
			case 52:
				$this->setUserAllowMassemail($value);
				break;
			case 53:
				$this->setUserOptions($value);
				break;
			case 54:
				$this->setUserAvatar($value);
				break;
			case 55:
				$this->setUserAvatarType($value);
				break;
			case 56:
				$this->setUserAvatarWidth($value);
				break;
			case 57:
				$this->setUserAvatarHeight($value);
				break;
			case 58:
				$this->setUserSig($value);
				break;
			case 59:
				$this->setUserSigBbcodeUid($value);
				break;
			case 60:
				$this->setUserSigBbcodeBitfield($value);
				break;
			case 61:
				$this->setUserFrom($value);
				break;
			case 62:
				$this->setUserIcq($value);
				break;
			case 63:
				$this->setUserAim($value);
				break;
			case 64:
				$this->setUserYim($value);
				break;
			case 65:
				$this->setUserMsnm($value);
				break;
			case 66:
				$this->setUserJabber($value);
				break;
			case 67:
				$this->setUserWebsite($value);
				break;
			case 68:
				$this->setUserOcc($value);
				break;
			case 69:
				$this->setUserInterests($value);
				break;
			case 70:
				$this->setUserActkey($value);
				break;
			case 71:
				$this->setUserNewpasswd($value);
				break;
			case 72:
				$this->setUserFormSalt($value);
				break;
			case 73:
				$this->setUserNew($value);
				break;
			case 74:
				$this->setUserReminded($value);
				break;
			case 75:
				$this->setUserRemindedTime($value);
				break;
			case 76:
				$this->setId($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = PhpBbUserPeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setUserId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setUserType($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setGroupId($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setUserPermissions($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setUserPermFrom($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setUserIp($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setUserRegdate($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setUsername($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setUsernameClean($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setUserPassword($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setUserPasschg($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setUserPassConvert($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setUserEmail($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setUserEmailHash($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setUserBirthday($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setUserLastvisit($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setUserLastmark($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setUserLastpostTime($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setUserLastpage($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setUserLastConfirmKey($arr[$keys[19]]);
		if (array_key_exists($keys[20], $arr)) $this->setUserLastSearch($arr[$keys[20]]);
		if (array_key_exists($keys[21], $arr)) $this->setUserWarnings($arr[$keys[21]]);
		if (array_key_exists($keys[22], $arr)) $this->setUserLastWarning($arr[$keys[22]]);
		if (array_key_exists($keys[23], $arr)) $this->setUserLoginAttempts($arr[$keys[23]]);
		if (array_key_exists($keys[24], $arr)) $this->setUserInactiveReason($arr[$keys[24]]);
		if (array_key_exists($keys[25], $arr)) $this->setUserInactiveTime($arr[$keys[25]]);
		if (array_key_exists($keys[26], $arr)) $this->setUserPosts($arr[$keys[26]]);
		if (array_key_exists($keys[27], $arr)) $this->setUserLang($arr[$keys[27]]);
		if (array_key_exists($keys[28], $arr)) $this->setUserTimezone($arr[$keys[28]]);
		if (array_key_exists($keys[29], $arr)) $this->setUserDst($arr[$keys[29]]);
		if (array_key_exists($keys[30], $arr)) $this->setUserDateformat($arr[$keys[30]]);
		if (array_key_exists($keys[31], $arr)) $this->setUserStyle($arr[$keys[31]]);
		if (array_key_exists($keys[32], $arr)) $this->setUserRank($arr[$keys[32]]);
		if (array_key_exists($keys[33], $arr)) $this->setUserColour($arr[$keys[33]]);
		if (array_key_exists($keys[34], $arr)) $this->setUserNewPrivmsg($arr[$keys[34]]);
		if (array_key_exists($keys[35], $arr)) $this->setUserUnreadPrivmsg($arr[$keys[35]]);
		if (array_key_exists($keys[36], $arr)) $this->setUserLastPrivmsg($arr[$keys[36]]);
		if (array_key_exists($keys[37], $arr)) $this->setUserMessageRules($arr[$keys[37]]);
		if (array_key_exists($keys[38], $arr)) $this->setUserFullFolder($arr[$keys[38]]);
		if (array_key_exists($keys[39], $arr)) $this->setUserEmailtime($arr[$keys[39]]);
		if (array_key_exists($keys[40], $arr)) $this->setUserTopicShowDays($arr[$keys[40]]);
		if (array_key_exists($keys[41], $arr)) $this->setUserTopicSortbyType($arr[$keys[41]]);
		if (array_key_exists($keys[42], $arr)) $this->setUserTopicSortbyDir($arr[$keys[42]]);
		if (array_key_exists($keys[43], $arr)) $this->setUserPostShowDays($arr[$keys[43]]);
		if (array_key_exists($keys[44], $arr)) $this->setUserPostSortbyType($arr[$keys[44]]);
		if (array_key_exists($keys[45], $arr)) $this->setUserPostSortbyDir($arr[$keys[45]]);
		if (array_key_exists($keys[46], $arr)) $this->setUserNotify($arr[$keys[46]]);
		if (array_key_exists($keys[47], $arr)) $this->setUserNotifyPm($arr[$keys[47]]);
		if (array_key_exists($keys[48], $arr)) $this->setUserNotifyType($arr[$keys[48]]);
		if (array_key_exists($keys[49], $arr)) $this->setUserAllowPm($arr[$keys[49]]);
		if (array_key_exists($keys[50], $arr)) $this->setUserAllowViewonline($arr[$keys[50]]);
		if (array_key_exists($keys[51], $arr)) $this->setUserAllowViewemail($arr[$keys[51]]);
		if (array_key_exists($keys[52], $arr)) $this->setUserAllowMassemail($arr[$keys[52]]);
		if (array_key_exists($keys[53], $arr)) $this->setUserOptions($arr[$keys[53]]);
		if (array_key_exists($keys[54], $arr)) $this->setUserAvatar($arr[$keys[54]]);
		if (array_key_exists($keys[55], $arr)) $this->setUserAvatarType($arr[$keys[55]]);
		if (array_key_exists($keys[56], $arr)) $this->setUserAvatarWidth($arr[$keys[56]]);
		if (array_key_exists($keys[57], $arr)) $this->setUserAvatarHeight($arr[$keys[57]]);
		if (array_key_exists($keys[58], $arr)) $this->setUserSig($arr[$keys[58]]);
		if (array_key_exists($keys[59], $arr)) $this->setUserSigBbcodeUid($arr[$keys[59]]);
		if (array_key_exists($keys[60], $arr)) $this->setUserSigBbcodeBitfield($arr[$keys[60]]);
		if (array_key_exists($keys[61], $arr)) $this->setUserFrom($arr[$keys[61]]);
		if (array_key_exists($keys[62], $arr)) $this->setUserIcq($arr[$keys[62]]);
		if (array_key_exists($keys[63], $arr)) $this->setUserAim($arr[$keys[63]]);
		if (array_key_exists($keys[64], $arr)) $this->setUserYim($arr[$keys[64]]);
		if (array_key_exists($keys[65], $arr)) $this->setUserMsnm($arr[$keys[65]]);
		if (array_key_exists($keys[66], $arr)) $this->setUserJabber($arr[$keys[66]]);
		if (array_key_exists($keys[67], $arr)) $this->setUserWebsite($arr[$keys[67]]);
		if (array_key_exists($keys[68], $arr)) $this->setUserOcc($arr[$keys[68]]);
		if (array_key_exists($keys[69], $arr)) $this->setUserInterests($arr[$keys[69]]);
		if (array_key_exists($keys[70], $arr)) $this->setUserActkey($arr[$keys[70]]);
		if (array_key_exists($keys[71], $arr)) $this->setUserNewpasswd($arr[$keys[71]]);
		if (array_key_exists($keys[72], $arr)) $this->setUserFormSalt($arr[$keys[72]]);
		if (array_key_exists($keys[73], $arr)) $this->setUserNew($arr[$keys[73]]);
		if (array_key_exists($keys[74], $arr)) $this->setUserReminded($arr[$keys[74]]);
		if (array_key_exists($keys[75], $arr)) $this->setUserRemindedTime($arr[$keys[75]]);
		if (array_key_exists($keys[76], $arr)) $this->setId($arr[$keys[76]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(PhpBbUserPeer::DATABASE_NAME);

		if ($this->isColumnModified(PhpBbUserPeer::USER_ID)) $criteria->add(PhpBbUserPeer::USER_ID, $this->user_id);
		if ($this->isColumnModified(PhpBbUserPeer::USER_TYPE)) $criteria->add(PhpBbUserPeer::USER_TYPE, $this->user_type);
		if ($this->isColumnModified(PhpBbUserPeer::GROUP_ID)) $criteria->add(PhpBbUserPeer::GROUP_ID, $this->group_id);
		if ($this->isColumnModified(PhpBbUserPeer::USER_PERMISSIONS)) $criteria->add(PhpBbUserPeer::USER_PERMISSIONS, $this->user_permissions);
		if ($this->isColumnModified(PhpBbUserPeer::USER_PERM_FROM)) $criteria->add(PhpBbUserPeer::USER_PERM_FROM, $this->user_perm_from);
		if ($this->isColumnModified(PhpBbUserPeer::USER_IP)) $criteria->add(PhpBbUserPeer::USER_IP, $this->user_ip);
		if ($this->isColumnModified(PhpBbUserPeer::USER_REGDATE)) $criteria->add(PhpBbUserPeer::USER_REGDATE, $this->user_regdate);
		if ($this->isColumnModified(PhpBbUserPeer::USERNAME)) $criteria->add(PhpBbUserPeer::USERNAME, $this->username);
		if ($this->isColumnModified(PhpBbUserPeer::USERNAME_CLEAN)) $criteria->add(PhpBbUserPeer::USERNAME_CLEAN, $this->username_clean);
		if ($this->isColumnModified(PhpBbUserPeer::USER_PASSWORD)) $criteria->add(PhpBbUserPeer::USER_PASSWORD, $this->user_password);
		if ($this->isColumnModified(PhpBbUserPeer::USER_PASSCHG)) $criteria->add(PhpBbUserPeer::USER_PASSCHG, $this->user_passchg);
		if ($this->isColumnModified(PhpBbUserPeer::USER_PASS_CONVERT)) $criteria->add(PhpBbUserPeer::USER_PASS_CONVERT, $this->user_pass_convert);
		if ($this->isColumnModified(PhpBbUserPeer::USER_EMAIL)) $criteria->add(PhpBbUserPeer::USER_EMAIL, $this->user_email);
		if ($this->isColumnModified(PhpBbUserPeer::USER_EMAIL_HASH)) $criteria->add(PhpBbUserPeer::USER_EMAIL_HASH, $this->user_email_hash);
		if ($this->isColumnModified(PhpBbUserPeer::USER_BIRTHDAY)) $criteria->add(PhpBbUserPeer::USER_BIRTHDAY, $this->user_birthday);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LASTVISIT)) $criteria->add(PhpBbUserPeer::USER_LASTVISIT, $this->user_lastvisit);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LASTMARK)) $criteria->add(PhpBbUserPeer::USER_LASTMARK, $this->user_lastmark);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LASTPOST_TIME)) $criteria->add(PhpBbUserPeer::USER_LASTPOST_TIME, $this->user_lastpost_time);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LASTPAGE)) $criteria->add(PhpBbUserPeer::USER_LASTPAGE, $this->user_lastpage);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LAST_CONFIRM_KEY)) $criteria->add(PhpBbUserPeer::USER_LAST_CONFIRM_KEY, $this->user_last_confirm_key);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LAST_SEARCH)) $criteria->add(PhpBbUserPeer::USER_LAST_SEARCH, $this->user_last_search);
		if ($this->isColumnModified(PhpBbUserPeer::USER_WARNINGS)) $criteria->add(PhpBbUserPeer::USER_WARNINGS, $this->user_warnings);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LAST_WARNING)) $criteria->add(PhpBbUserPeer::USER_LAST_WARNING, $this->user_last_warning);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LOGIN_ATTEMPTS)) $criteria->add(PhpBbUserPeer::USER_LOGIN_ATTEMPTS, $this->user_login_attempts);
		if ($this->isColumnModified(PhpBbUserPeer::USER_INACTIVE_REASON)) $criteria->add(PhpBbUserPeer::USER_INACTIVE_REASON, $this->user_inactive_reason);
		if ($this->isColumnModified(PhpBbUserPeer::USER_INACTIVE_TIME)) $criteria->add(PhpBbUserPeer::USER_INACTIVE_TIME, $this->user_inactive_time);
		if ($this->isColumnModified(PhpBbUserPeer::USER_POSTS)) $criteria->add(PhpBbUserPeer::USER_POSTS, $this->user_posts);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LANG)) $criteria->add(PhpBbUserPeer::USER_LANG, $this->user_lang);
		if ($this->isColumnModified(PhpBbUserPeer::USER_TIMEZONE)) $criteria->add(PhpBbUserPeer::USER_TIMEZONE, $this->user_timezone);
		if ($this->isColumnModified(PhpBbUserPeer::USER_DST)) $criteria->add(PhpBbUserPeer::USER_DST, $this->user_dst);
		if ($this->isColumnModified(PhpBbUserPeer::USER_DATEFORMAT)) $criteria->add(PhpBbUserPeer::USER_DATEFORMAT, $this->user_dateformat);
		if ($this->isColumnModified(PhpBbUserPeer::USER_STYLE)) $criteria->add(PhpBbUserPeer::USER_STYLE, $this->user_style);
		if ($this->isColumnModified(PhpBbUserPeer::USER_RANK)) $criteria->add(PhpBbUserPeer::USER_RANK, $this->user_rank);
		if ($this->isColumnModified(PhpBbUserPeer::USER_COLOUR)) $criteria->add(PhpBbUserPeer::USER_COLOUR, $this->user_colour);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NEW_PRIVMSG)) $criteria->add(PhpBbUserPeer::USER_NEW_PRIVMSG, $this->user_new_privmsg);
		if ($this->isColumnModified(PhpBbUserPeer::USER_UNREAD_PRIVMSG)) $criteria->add(PhpBbUserPeer::USER_UNREAD_PRIVMSG, $this->user_unread_privmsg);
		if ($this->isColumnModified(PhpBbUserPeer::USER_LAST_PRIVMSG)) $criteria->add(PhpBbUserPeer::USER_LAST_PRIVMSG, $this->user_last_privmsg);
		if ($this->isColumnModified(PhpBbUserPeer::USER_MESSAGE_RULES)) $criteria->add(PhpBbUserPeer::USER_MESSAGE_RULES, $this->user_message_rules);
		if ($this->isColumnModified(PhpBbUserPeer::USER_FULL_FOLDER)) $criteria->add(PhpBbUserPeer::USER_FULL_FOLDER, $this->user_full_folder);
		if ($this->isColumnModified(PhpBbUserPeer::USER_EMAILTIME)) $criteria->add(PhpBbUserPeer::USER_EMAILTIME, $this->user_emailtime);
		if ($this->isColumnModified(PhpBbUserPeer::USER_TOPIC_SHOW_DAYS)) $criteria->add(PhpBbUserPeer::USER_TOPIC_SHOW_DAYS, $this->user_topic_show_days);
		if ($this->isColumnModified(PhpBbUserPeer::USER_TOPIC_SORTBY_TYPE)) $criteria->add(PhpBbUserPeer::USER_TOPIC_SORTBY_TYPE, $this->user_topic_sortby_type);
		if ($this->isColumnModified(PhpBbUserPeer::USER_TOPIC_SORTBY_DIR)) $criteria->add(PhpBbUserPeer::USER_TOPIC_SORTBY_DIR, $this->user_topic_sortby_dir);
		if ($this->isColumnModified(PhpBbUserPeer::USER_POST_SHOW_DAYS)) $criteria->add(PhpBbUserPeer::USER_POST_SHOW_DAYS, $this->user_post_show_days);
		if ($this->isColumnModified(PhpBbUserPeer::USER_POST_SORTBY_TYPE)) $criteria->add(PhpBbUserPeer::USER_POST_SORTBY_TYPE, $this->user_post_sortby_type);
		if ($this->isColumnModified(PhpBbUserPeer::USER_POST_SORTBY_DIR)) $criteria->add(PhpBbUserPeer::USER_POST_SORTBY_DIR, $this->user_post_sortby_dir);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NOTIFY)) $criteria->add(PhpBbUserPeer::USER_NOTIFY, $this->user_notify);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NOTIFY_PM)) $criteria->add(PhpBbUserPeer::USER_NOTIFY_PM, $this->user_notify_pm);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NOTIFY_TYPE)) $criteria->add(PhpBbUserPeer::USER_NOTIFY_TYPE, $this->user_notify_type);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ALLOW_PM)) $criteria->add(PhpBbUserPeer::USER_ALLOW_PM, $this->user_allow_pm);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ALLOW_VIEWONLINE)) $criteria->add(PhpBbUserPeer::USER_ALLOW_VIEWONLINE, $this->user_allow_viewonline);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ALLOW_VIEWEMAIL)) $criteria->add(PhpBbUserPeer::USER_ALLOW_VIEWEMAIL, $this->user_allow_viewemail);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ALLOW_MASSEMAIL)) $criteria->add(PhpBbUserPeer::USER_ALLOW_MASSEMAIL, $this->user_allow_massemail);
		if ($this->isColumnModified(PhpBbUserPeer::USER_OPTIONS)) $criteria->add(PhpBbUserPeer::USER_OPTIONS, $this->user_options);
		if ($this->isColumnModified(PhpBbUserPeer::USER_AVATAR)) $criteria->add(PhpBbUserPeer::USER_AVATAR, $this->user_avatar);
		if ($this->isColumnModified(PhpBbUserPeer::USER_AVATAR_TYPE)) $criteria->add(PhpBbUserPeer::USER_AVATAR_TYPE, $this->user_avatar_type);
		if ($this->isColumnModified(PhpBbUserPeer::USER_AVATAR_WIDTH)) $criteria->add(PhpBbUserPeer::USER_AVATAR_WIDTH, $this->user_avatar_width);
		if ($this->isColumnModified(PhpBbUserPeer::USER_AVATAR_HEIGHT)) $criteria->add(PhpBbUserPeer::USER_AVATAR_HEIGHT, $this->user_avatar_height);
		if ($this->isColumnModified(PhpBbUserPeer::USER_SIG)) $criteria->add(PhpBbUserPeer::USER_SIG, $this->user_sig);
		if ($this->isColumnModified(PhpBbUserPeer::USER_SIG_BBCODE_UID)) $criteria->add(PhpBbUserPeer::USER_SIG_BBCODE_UID, $this->user_sig_bbcode_uid);
		if ($this->isColumnModified(PhpBbUserPeer::USER_SIG_BBCODE_BITFIELD)) $criteria->add(PhpBbUserPeer::USER_SIG_BBCODE_BITFIELD, $this->user_sig_bbcode_bitfield);
		if ($this->isColumnModified(PhpBbUserPeer::USER_FROM)) $criteria->add(PhpBbUserPeer::USER_FROM, $this->user_from);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ICQ)) $criteria->add(PhpBbUserPeer::USER_ICQ, $this->user_icq);
		if ($this->isColumnModified(PhpBbUserPeer::USER_AIM)) $criteria->add(PhpBbUserPeer::USER_AIM, $this->user_aim);
		if ($this->isColumnModified(PhpBbUserPeer::USER_YIM)) $criteria->add(PhpBbUserPeer::USER_YIM, $this->user_yim);
		if ($this->isColumnModified(PhpBbUserPeer::USER_MSNM)) $criteria->add(PhpBbUserPeer::USER_MSNM, $this->user_msnm);
		if ($this->isColumnModified(PhpBbUserPeer::USER_JABBER)) $criteria->add(PhpBbUserPeer::USER_JABBER, $this->user_jabber);
		if ($this->isColumnModified(PhpBbUserPeer::USER_WEBSITE)) $criteria->add(PhpBbUserPeer::USER_WEBSITE, $this->user_website);
		if ($this->isColumnModified(PhpBbUserPeer::USER_OCC)) $criteria->add(PhpBbUserPeer::USER_OCC, $this->user_occ);
		if ($this->isColumnModified(PhpBbUserPeer::USER_INTERESTS)) $criteria->add(PhpBbUserPeer::USER_INTERESTS, $this->user_interests);
		if ($this->isColumnModified(PhpBbUserPeer::USER_ACTKEY)) $criteria->add(PhpBbUserPeer::USER_ACTKEY, $this->user_actkey);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NEWPASSWD)) $criteria->add(PhpBbUserPeer::USER_NEWPASSWD, $this->user_newpasswd);
		if ($this->isColumnModified(PhpBbUserPeer::USER_FORM_SALT)) $criteria->add(PhpBbUserPeer::USER_FORM_SALT, $this->user_form_salt);
		if ($this->isColumnModified(PhpBbUserPeer::USER_NEW)) $criteria->add(PhpBbUserPeer::USER_NEW, $this->user_new);
		if ($this->isColumnModified(PhpBbUserPeer::USER_REMINDED)) $criteria->add(PhpBbUserPeer::USER_REMINDED, $this->user_reminded);
		if ($this->isColumnModified(PhpBbUserPeer::USER_REMINDED_TIME)) $criteria->add(PhpBbUserPeer::USER_REMINDED_TIME, $this->user_reminded_time);
		if ($this->isColumnModified(PhpBbUserPeer::ID)) $criteria->add(PhpBbUserPeer::ID, $this->id);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(PhpBbUserPeer::DATABASE_NAME);

		$criteria->add(PhpBbUserPeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setUserId($this->user_id);

		$copyObj->setUserType($this->user_type);

		$copyObj->setGroupId($this->group_id);

		$copyObj->setUserPermissions($this->user_permissions);

		$copyObj->setUserPermFrom($this->user_perm_from);

		$copyObj->setUserIp($this->user_ip);

		$copyObj->setUserRegdate($this->user_regdate);

		$copyObj->setUsername($this->username);

		$copyObj->setUsernameClean($this->username_clean);

		$copyObj->setUserPassword($this->user_password);

		$copyObj->setUserPasschg($this->user_passchg);

		$copyObj->setUserPassConvert($this->user_pass_convert);

		$copyObj->setUserEmail($this->user_email);

		$copyObj->setUserEmailHash($this->user_email_hash);

		$copyObj->setUserBirthday($this->user_birthday);

		$copyObj->setUserLastvisit($this->user_lastvisit);

		$copyObj->setUserLastmark($this->user_lastmark);

		$copyObj->setUserLastpostTime($this->user_lastpost_time);

		$copyObj->setUserLastpage($this->user_lastpage);

		$copyObj->setUserLastConfirmKey($this->user_last_confirm_key);

		$copyObj->setUserLastSearch($this->user_last_search);

		$copyObj->setUserWarnings($this->user_warnings);

		$copyObj->setUserLastWarning($this->user_last_warning);

		$copyObj->setUserLoginAttempts($this->user_login_attempts);

		$copyObj->setUserInactiveReason($this->user_inactive_reason);

		$copyObj->setUserInactiveTime($this->user_inactive_time);

		$copyObj->setUserPosts($this->user_posts);

		$copyObj->setUserLang($this->user_lang);

		$copyObj->setUserTimezone($this->user_timezone);

		$copyObj->setUserDst($this->user_dst);

		$copyObj->setUserDateformat($this->user_dateformat);

		$copyObj->setUserStyle($this->user_style);

		$copyObj->setUserRank($this->user_rank);

		$copyObj->setUserColour($this->user_colour);

		$copyObj->setUserNewPrivmsg($this->user_new_privmsg);

		$copyObj->setUserUnreadPrivmsg($this->user_unread_privmsg);

		$copyObj->setUserLastPrivmsg($this->user_last_privmsg);

		$copyObj->setUserMessageRules($this->user_message_rules);

		$copyObj->setUserFullFolder($this->user_full_folder);

		$copyObj->setUserEmailtime($this->user_emailtime);

		$copyObj->setUserTopicShowDays($this->user_topic_show_days);

		$copyObj->setUserTopicSortbyType($this->user_topic_sortby_type);

		$copyObj->setUserTopicSortbyDir($this->user_topic_sortby_dir);

		$copyObj->setUserPostShowDays($this->user_post_show_days);

		$copyObj->setUserPostSortbyType($this->user_post_sortby_type);

		$copyObj->setUserPostSortbyDir($this->user_post_sortby_dir);

		$copyObj->setUserNotify($this->user_notify);

		$copyObj->setUserNotifyPm($this->user_notify_pm);

		$copyObj->setUserNotifyType($this->user_notify_type);

		$copyObj->setUserAllowPm($this->user_allow_pm);

		$copyObj->setUserAllowViewonline($this->user_allow_viewonline);

		$copyObj->setUserAllowViewemail($this->user_allow_viewemail);

		$copyObj->setUserAllowMassemail($this->user_allow_massemail);

		$copyObj->setUserOptions($this->user_options);

		$copyObj->setUserAvatar($this->user_avatar);

		$copyObj->setUserAvatarType($this->user_avatar_type);

		$copyObj->setUserAvatarWidth($this->user_avatar_width);

		$copyObj->setUserAvatarHeight($this->user_avatar_height);

		$copyObj->setUserSig($this->user_sig);

		$copyObj->setUserSigBbcodeUid($this->user_sig_bbcode_uid);

		$copyObj->setUserSigBbcodeBitfield($this->user_sig_bbcode_bitfield);

		$copyObj->setUserFrom($this->user_from);

		$copyObj->setUserIcq($this->user_icq);

		$copyObj->setUserAim($this->user_aim);

		$copyObj->setUserYim($this->user_yim);

		$copyObj->setUserMsnm($this->user_msnm);

		$copyObj->setUserJabber($this->user_jabber);

		$copyObj->setUserWebsite($this->user_website);

		$copyObj->setUserOcc($this->user_occ);

		$copyObj->setUserInterests($this->user_interests);

		$copyObj->setUserActkey($this->user_actkey);

		$copyObj->setUserNewpasswd($this->user_newpasswd);

		$copyObj->setUserFormSalt($this->user_form_salt);

		$copyObj->setUserNew($this->user_new);

		$copyObj->setUserReminded($this->user_reminded);

		$copyObj->setUserRemindedTime($this->user_reminded_time);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new PhpBbUserPeer();
		}
		return self::$peer;
	}

} 